﻿using System;
using System.Text;
using System.Data;
using System.Data.OleDb;
using System.Collections.Generic;
using System.Reflection;
namespace BLL
{
	 	//Newscont
		public static class DrawNumber
	{
            private static Data.DrawNumber Data_Newscont = new Data.DrawNumber();	
		
		/// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static long Add(Model.DrawNumber model)
        {
              return Data_Newscont.Add(model);
        }
         /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static int Update(Model.DrawNumber model)
        {
            return Data_Newscont.Update(model);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public static bool Delete(long Id)
        {
            return Data_Newscont.Delete(Id);
        }       
        /// <summary>
        /// 单条
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public static Model.DrawNumber GetModel(long Id)
        {
             return Data_Newscont.GetModel(Id);
        } 
        public static Model.DrawNumber NewsTopOne(string sql)
        {
            return Data_Newscont.GetModelBysql(sql);

        } 
        /// <summary>
        /// 总数据数
        /// </summary>
        /// <returns></returns>
        public static int GetAll_Count()
        {
            return Data_Newscont.GetAll_Count();
        }        
        /// <summary>
        /// 抽取分页数据
        /// </summary>
        public static List<Model.DrawNumber> GetPageList_Where(int pageIndex, int pageSize,out int totalCount)
        {          
             return Data_Newscont.GetPageList_Where(pageIndex, pageSize, out totalCount);
        }
        public static DataTable GetPageDT_Where(int PageIndex, int PageSize, long newsclassid, out int totalCount)
        {
            return Data_Newscont.GetPageDT_Where(PageIndex, PageSize, newsclassid, out totalCount);
        }
        /// <summary>
        /// 批删
        /// </summary>
        /// <param name="Ids"></param>
        /// <returns></returns>
        public static int Drop(string Ids)
        {
            return Data_Newscont.Drop(Ids);
        }
	}
}